package health.lm.com.mine.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import health.lm.com.component_base.helper.ImageLoaderHelper;
import health.lm.com.mine.R;
import health.lm.com.mine.entity.MineContentEntity;

/**
 * 我的主布局
 * 根据返回数据来确定显示什么样的布局
 * @author Administrator
 */

public class MineAdapter extends BaseQuickAdapter<MineContentEntity, BaseViewHolder> {

    public MineAdapter( @Nullable List<MineContentEntity> data) {
        super(R.layout.item_mine_content_other_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MineContentEntity item) {
        helper.setText(R.id.tv_order_item,item.getTitle());
        ImageLoaderHelper.getInstance().load(mContext,item.getIconImge(),helper.getView(R.id.iv_order_item));
    }
}
